package com.example.wengwyue.patientapplication.controller;

import android.content.Context;
import android.content.Intent;

import com.example.wengwyue.patientapplication.activity.LoginActivity;
import com.example.wengwyue.patientapplication.activity.MainActivity;


/**
 * 作者：wenyue   时间： 16/6/20.
 * 功能：页面跳转类
 * 修改：
 */
public class ActivityController {

    public static void goToLogin(Context context) {
        Intent intent = new Intent(context, LoginActivity.class);
        context.startActivity(intent);
    }
    public static void goToMain(Context context) {
        Intent intent = new Intent(context, MainActivity.class);
        context.startActivity(intent);

    }
}
